import * as Cesium from 'cesium';

class FlexSpaceGrid {
  constructor(viewer) {
    this.viewer = viewer;
  }
  createFlexSpaceGrid () {
    const heightmap = [[0, 1, 2, 3], [4, 5, 6, 7], [8, 9, 10, 11], [12, 13, 14, 15]];

    const terrainTile = {
      west: 0,
      south: 0,
      east: 100,
      north: 100,
    };

    const vertices = Cesium.HeightmapTessellator.computeVertices(heightmap, terrainTile);

    console.log('vertices: ', vertices);
  }
}

export default FlexSpaceGrid;
